package com.rs.admin.sys.org.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户-部门关系
 * </p>
 *
 * @author hedonglin
 * @since 2017-12-20
 */
@TableName("org_user_department")
public class UserDepartment extends Model<UserDepartment> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
	private Long id;
    /**
     * 部门编号
     */
	@TableField("department_id")
	private Long departmentId;
    /**
     * 用户编号
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 进入时间
     */
	@TableField("in_date")
	private Date inDate;
    /**
     * 离开时间
     */
	@TableField("out_date")
	private Date outDate;
    /**
     * 说明
     */
	private String remark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getInDate() {
		return inDate;
	}

	public void setInDate(Date inDate) {
		this.inDate = inDate;
	}

	public Date getOutDate() {
		return outDate;
	}

	public void setOutDate(Date outDate) {
		this.outDate = outDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserDepartment{" +
			", id=" + id +
			", departmentId=" + departmentId +
			", userId=" + userId +
			", status=" + status +
			", inDate=" + inDate +
			", outDate=" + outDate +
			", remark=" + remark +
			"}";
	}
}
